package com.c1802.action;

import com.c1802.dao.Impl.LeaveDaoImpl;
import com.c1802.dao.LeaveDao;
import com.opensymphony.xwork2.ActionSupport;
import org.omg.PortableInterceptor.ACTIVE;

public class DjActION  extends ActionSupport {
    int zan;
    int leave_id;


    @Override
    public String execute() throws Exception {
        System.out.println(zan+"--"+leave_id);
        LeaveDao dao=new LeaveDaoImpl();
        int num=dao.update(zan,leave_id);
        if(num>0)
        {
            return "success";
        }else {
            return "error";
        }

    }


    public int getZan() {
        return zan;
    }

    public void setZan(int zan) {
        this.zan = zan;
    }

    public int getLeave_id() {
        return leave_id;
    }

    public void setLeave_id(int leave_id) {
        this.leave_id = leave_id;
    }
}
